<?php

session_start();
require_once("config.php");
require_once("functions.php");
header( "Expires: Mon, 26 Jul 1997 05:00:00 GMT" ); 
header( "Last-Modified: " . gmdate( "D, d M Y H:i:s" ) . "GMT" ); 
header( "Cache-Control: no-cache, must-revalidate" ); 
header( "Pragma: no-cache" );

// Setup the mserv command for the current user.
$MSERVCMD = $mservcmd." -u ".escapeshellarg($_SESSION['USERNAME'])." -p ".escapeshellarg($_SESSION['PASSWORD'])." -h ".$host." ";
// Check login and password
$res = top();
if($res["STATUS"] == "234") {
	$res=volume($_POST["volume"]);
	echo $res["VOLUME"];
} else {
	echo _("Disconnected");
}
?>
